/*
*****************************************************************************
*					Mountain View Silicon Tech. Inc.
*	Copyright 2007, Mountain View Silicon Tech. Inc., ShangHai, China
*					All rights reserved.
*
* Filename:			debug.h
* Description:		debug function h file.
*
* Change History:
*			Grey	- 10/xx/2006 - V0.1
*					- created
*			Jack	- 8/xx/2007 - V0.2
*					- change code layout
******************************************************************************
*/
#if !defined(__DEBUG_H__)
#define __DEBUG_H__

#define FUNC_UARTDBG_EN
/*
**********************************************************
*					GLOBAL MACRO
**********************************************************
*/
#ifdef FUNC_UARTDBG_EN

	#ifndef	LIB_CREATE_EN
	
		#include <stdio.h>
		#define	DBG(x)		printf x		

	#else

		#warning	"MV: IN LIBRARY CREATE, DBG() DISABLE!"
		#define	DBG(x)	

	#endif

#else

#define	DBG(x)
#define DBG_SET_TIMER(timer, n)

#endif


#endif

